package com.lesso.lpq.sunflower.app.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.lesso.lpq.sunflower.domain.service.EmployeeDeviceDomainService;
import com.lesso.lpq.sunflower.pojo.dto.EmployeeDeviceDTO;
import com.lesso.lpq.sunflower.pojo.dto.EmployeeDeviceQueryDTO;
import com.lesso.lpq.sunflower.pojo.vo.EmployeeDeviceVO;
import com.lesso.lpq.sunflower.service.IEmployeeDeviceService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 员工考勤设备关系表 服务实现类
 * </p>
 *
 * @author lpq
 * @since 2025-07-05
 */
@Service
@DubboService
public class EmployeeDeviceServiceImpl implements IEmployeeDeviceService {
    private final EmployeeDeviceDomainService employeeDeviceDomainService;

    public EmployeeDeviceServiceImpl(EmployeeDeviceDomainService employeeDeviceDomainService) {
        this.employeeDeviceDomainService = employeeDeviceDomainService;
    }

    @Override
    public void deleteById(Long id) {
        employeeDeviceDomainService.deleteById(id);
    }

    @Override
    public Page<EmployeeDeviceVO> customPage(EmployeeDeviceQueryDTO dto) {
        return employeeDeviceDomainService.customPage(dto);
    }

    @Override
    public void update(EmployeeDeviceDTO dto) {
        employeeDeviceDomainService.update(dto);
    }

    @Override
    public Page<EmployeeDeviceVO> page(EmployeeDeviceQueryDTO dto) {
        return employeeDeviceDomainService.page(dto);
    }

    @Override
    public Long save(EmployeeDeviceDTO dto) {
        return employeeDeviceDomainService.save(dto);
    }

    @Override
    public EmployeeDeviceVO getByEmployeeId(String employeeId) {
        return employeeDeviceDomainService.getByEmployeeId(employeeId);
    }
}
